bugfix for potential undefined call