Fix for error in creating applications