fixes views loading problem