fixing bug in devices without action bar