Fix controller creation

Check for already existing controller do not worked.