Fixed scripts and styles registering