Ok this is weird! I used the same code and everything! But this time I started the project again and now it works?