fixed issue on layer queries, due to the latest UI layout rewrite