bugfix: buttons was not showing in some cases