fixing beforeCasting - Removing an additional div -