Fixed issues regarding invalid placement